(jit-lock-after-change): If font-lock-multiline
authorGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:28:32 +0000 (13:28 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:28:32 +0000 (13:28 +0000)
is nil, don't check the `font-lock-multiline' text property.

lisp/jit-lock.el

index 9cd9d2929ec3c6ce72851a6c2d9e5d6ce894113e..5fa93f0b94a0a63ba7a2c02c90beef19ea5f1682 100644 (file)
@@ -422,7 +422,8 @@ will take place when text is fontified stealthily."
       (with-buffer-prepared-for-jit-lock
        ;; If we're in text that matches a multi-line font-lock pattern,
        ;; make sure the whole text will be redisplayed.
-       (when (get-text-property start 'font-lock-multiline)
+       (when (and font-lock-multiline
+                 (get-text-property start 'font-lock-multiline))
         (setq start (or (previous-single-property-change
                          start 'font-lock-multiline)
                         (point-min))))